﻿using strange.extensions.dispatcher.eventdispatcher.api;
using strange.extensions.mediation.impl;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum PlayerGameState
{


    IsDoingTalk,
    CanMove_And_CanTouchWSAD,
    JustCanMove,
   
    IsTriggerEnterEnemy

}

public enum InputKeyEvent
{
    Press_ESC_View,
    Press_ESC,
    Press_T
}

namespace CommonIoC
{
    


    public class PlayerStageManagerView : View
    {
        [Inject]
        public IEventDispatcher dispatcher { get; set; }

        public PlayerGameState gamestate;


     

        public PlayerStage playerstage;
        public void ChangeStageToDoTalk()
        {
            dispatcher.Dispatch(PlayerStageEvent.onChange, PlayerStage.doTalk);
            playerstage = PlayerStage.doTalk;
        }

        public void ChangeStageTocanMove()
        {
            dispatcher.Dispatch(PlayerStageEvent.onChange, PlayerStage.canMove);
            playerstage = PlayerStage.canMove;
        }




        public void TriggerJoinBattleScene()
        {
           // ChangeStageToDoTalk();
            dispatcher.Dispatch(PlayerGameState.IsTriggerEnterEnemy);
           
        }


     

    }
}
